﻿using MvcWechat.Common;
using System.Web.Mvc;

namespace MvcWechat.Areas.Wap.Controllers
{
    public class TeamController : MvcWechat.Controllers.TeamController
    {
        /// <summary>
        /// 订单筛选
        /// </summary>
        /// <returns></returns>
        public ActionResult OrderFilter()
        {
            return View();
        }
        /// <summary>
        /// 库存筛选

        /// </summary>
        /// <returns></returns>
        public ActionResult DiasFilter()
        {
            return View();
        }

        /// <summary>
        /// ViewBag.Params  因为wap团队提交订单流程是新开页面填写备注，再提交
        /// </summary>
        /// <returns></returns>
        public ActionResult SubmitDiaOrder()
        {
            var _params = ControllerContext.RequestContext.HttpContext.Request.InputStream;
            if (_params != null && _params.Length > 0)
            {
                ViewBag.Params = System.Web.HttpUtility.UrlDecode(ManagerJson.ToJson(ControllerContext.RequestContext.HttpContext.Request.InputStream).Replace("params=", ""), System.Text.Encoding.UTF8);
            }
            else
            {
                ViewBag.Params = "";
            }
            return View();
        }
    }
}
